/* @(#)GSOrderSubmitDetailQueryVO.java   
 *
 * Project: GS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li    2006-3-17     新增
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

/**
 * 
 */
public class GSOrderSubmitToApepQueryVO implements GSBaseBean {
    //查询参数
    public String orderDetailId;
    
    public String providerName;
    
    public String manuftype1;
    
    public String manuftype2;
    
    public String manuftype3;
    
    public String deliverGoodsAddrId;
    
    public String concentricityId;
    
    public String manufInfo;
        
    public String orderDeptId;
    
    public String orderDetailStatus;
    
    public String orderCreateDateStr;
    
    public String orderCreateDateEnd;
    //查询结果列值
    public String manufName;
    
    public String isTradeFlatManuf;
    
    public String manufSpec;
    
    public String manufType;
    
    public String manufBrand;
    
    public double orderCount;
    
    public String orderDeptName;
    
    public String deliverGoodsDate;
    
    public String deliverGoodsTime;
    
    public String quantUnit;
    
    public double goodsUnitprice;
    
    public String orderId;
    
    public String providerId;
    
    public String isTradeFlatProvider;
    
    public String mode;
    
    public String drawingpiececode;
    
    public String is_normal;
    public Object process(ResultSet aResultSet) throws SQLException {
        
        GSOrderSubmitToApepQueryVO tOrderSubmitVO = new GSOrderSubmitToApepQueryVO();
        tOrderSubmitVO.orderDetailId = aResultSet.getString("P1").trim();
        tOrderSubmitVO.concentricityId = aResultSet.getString("P2").trim();
        tOrderSubmitVO.manufName = aResultSet.getString("P3").trim();
        tOrderSubmitVO.isTradeFlatManuf = aResultSet.getString("P4") ;
        tOrderSubmitVO.manufSpec = aResultSet.getString("P5") == null ? "" : aResultSet.getString("P5");
        tOrderSubmitVO.manufType = aResultSet.getString("P6") == null ? "" : aResultSet.getString("P6");
        tOrderSubmitVO.manufBrand = aResultSet.getString("P7") == null ? "" : aResultSet.getString("P7");
        tOrderSubmitVO.orderCount = aResultSet.getDouble("P8");
        tOrderSubmitVO.quantUnit = aResultSet.getString("P9") == null ? "" : aResultSet.getString("P9");
        tOrderSubmitVO.providerName = aResultSet.getString("P10").trim();
        tOrderSubmitVO.orderDeptName = aResultSet.getString("P11");
        tOrderSubmitVO.goodsUnitprice = aResultSet.getDouble("P12");
        tOrderSubmitVO.deliverGoodsDate = aResultSet.getString("P13") == null ? "" : aResultSet.getString("P13");
        tOrderSubmitVO.deliverGoodsTime = aResultSet.getString("P14") == null ? "" : aResultSet.getString("P14");
        tOrderSubmitVO.orderId = aResultSet.getString("P15");
        tOrderSubmitVO.providerId = aResultSet.getString("P16");
        tOrderSubmitVO.isTradeFlatProvider = aResultSet.getString("P17");
        tOrderSubmitVO.mode=aResultSet.getString("P18");
        tOrderSubmitVO.drawingpiececode=aResultSet.getString("DRAWING_PIECE_CODE")==null?"":aResultSet.getString("DRAWING_PIECE_CODE");
        int col=-1;
        col=aResultSet.findColumn("P19");
        if(col!=-1){
            tOrderSubmitVO.is_normal=aResultSet.getString("P19");
        }else{
            tOrderSubmitVO.is_normal="";
        }
        return tOrderSubmitVO;
    }

}
